package com.summer.safe.system.service;

import com.summer.safe.base.BaseService;
import com.summer.safe.system.dao.MenuDao;
import com.summer.safe.system.entity.Menu;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


/**
*
* 菜单
*/
@Service
@Transactional(rollbackFor = Exception.class)
public class MenuService extends BaseService<MenuDao, Menu> {

    @Override
    public Menu get(String id) {
        return dao.get(id);
    }
    @Override
    public List<Menu> findList(Menu menu) {
        return dao.findList(menu);
    }

    public void insert(Menu menu) {
        dao.insert(menu);
    }

}
